/*******************************************************************************
* 
* File system utility
*
* 
******************************************************************************/
#pragma once
#include "noria.h"
using std::istream;

namespace noria{ namespace io
{
    class FileHelper
    {
    public:
        static size_t getFileLength(const wstring& path);
        static size_t getFileLength(const string& path);
        static size_t getFileLength(istream& s);

        static binary_sp readAll(const wstring& path);
        static binary_sp readAll(const string& path);
        static binary_sp readAll(istream& s);

        static string FileHelper::readText(const wstring& path);
    };
}}
